package student.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import student.aistar.mapper.ProductParameterMapper;
import student.aistar.model.entity.Parameters;
import student.aistar.service.IProductParameterService;

import java.util.List;

@Service
public class ProductParameterService implements IProductParameterService {

    @Autowired
    private ProductParameterMapper productParameterMapper;


    @Override
    public List<Parameters> getAll() {
        return productParameterMapper.findAll();
    }

    @Override
    public Parameters getParameterByProductId(Integer productId) {
        return productParameterMapper.findParameterByProductId(productId);
    }
}
